{% set bodyId = 'pagebuilder-'~page.id %}

{% extends 'site.twig' %}

{% block content %}
<div class="content">
    <div class="content-blocks">

    {% block contentBlocks %}
    {% block pageheading %}
	    {% if page.metadata.heading %}
	        <h1>{{ page.metadata.heading }}</h1>
	    {% endif %}
    {% endblock %}

    {%for contentBlock in page.contentBlocks %}
        {% block contentBlock %}
        <div class="content-block id-{{contentBlock.id}}">
            {% if contentBlock.title %}
                <h2>{{contentBlock.title}}</h2>
            {% endif %}
            {{contentBlock.content|raw}}
        </div>
        {% endblock%}
    {% endfor%}
    {% endblock%}

    </div>

</div>
{% endblock %}
